@echo off
REM ******************************************************************
REM * This script generates a Self Signing certificate for 
REM * JAR files using the parameters defined in the signer.properties
REM * file
REM * This script only needs to be run once to create the certificate
REM * The certificate will be valid for 360 days
REM ******************************************************************
REM * 18-JUN-2003 DRMILLS - Creation
REM ******************************************************************

for /F "eol=# tokens=1,2* delims==" %%i in (signer.properties) do set %%i=%%j

"%JDK_HOME%\bin\keytool" -genkey -dname "cn=%DN_CN%, ou=%DN_OU%, o=%DN_O%, c=%DN_C%"  -alias %JAR_KEY% -keypass %JAR_KEY_PASSWORD% -keystore "%JINIT_HOME%\lib\security\keystore"  -storepass jinitiator -validity 360
@echo Certificate created...